cmake_minimum_required(VERSION 3.29)
set(PROJ_NAME case22)
project(${PROJ_NAME})

set(wxWidgets_ROOT_DIR C:/chenchang/study/TrayLauncher-source/source-archive/wxWidgets-3.2.6-install)

# Find wxWidgets
find_package(wxWidgets REQUIRED COMPONENTS core base)

# Include wxWidgets use file
include(${wxWidgets_USE_FILE})

add_executable(${PROJ_NAME}
    main.cpp
    )

target_compile_definitions(${PROJ_NAME} PRIVATE _UNICODE UNICODE WXUSINGDLL)

target_link_options(${PROJ_NAME} PRIVATE /SUBSYSTEM:WINDOWS)

# Link wxWidgets libraries
target_link_libraries(${PROJ_NAME} ${wxWidgets_LIBRARIES})
